-- GENERATED SPELL FOR [Dark Conclave Shadowmancer] --


function spell0_19826(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(16588,pUnit)
pUnit:RegisterEvent('Sorts_19826', 3500, 1)
end

function spell1_19826(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(38154,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19826', 7500, 1)
end

function spell2_19826(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19826', 3000, 1)
end

function Sorts_19826(pUnit, Event)
local choix_sorts_19826 = math.random(0, 2)
if choix_sorts_19826 == 0 then
pUnit:RegisterEvent('spell0_19826', 1, 1)
end
if choix_sorts_19826 == 1 then
pUnit:RegisterEvent('spell1_19826', 1, 1)
end
if choix_sorts_19826 == 2 then
pUnit:RegisterEvent('spell2_19826', 1, 1)
end
end

function mob19826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19826', math.random(1500, 3000), 1)
end

function mob19826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19826, 1, 'mob19826_Action')
RegisterUnitEvent(19826, 2, 'mob19826_Leave')
RegisterUnitEvent(19826, 3, 'mob19826_Kill')
RegisterUnitEvent(19826, 4, 'mob19826_Die')
